package top.buyibuyi.course.service.impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.buyibuyi.course.dao.SelectStuChoseDao;
import top.buyibuyi.course.pojo.StuSchose;
import top.buyibuyi.course.service.SelectStuChoseService;

import java.util.List;

@Service
public class SelectStuChoseServiceImpl implements SelectStuChoseService {
    @Autowired
    private SelectStuChoseDao selectStuChoseDao;
    @Override
    public List<StuSchose> selectStuChose(@Param("startPage") int startPage,@Param("limit") int limit,
                                          @Param("sname") String sname,@Param("stuid") String stuid) {
        return selectStuChoseDao.selectStuChose(startPage,limit,sname,stuid);
    }

    @Override
    public int selectCount(StuSchose schose) {
        return selectStuChoseDao.selectCount(schose);
    }

    @Override
    public List<StuSchose> selectCollgeeStuChose(@Param("startPage") int startPage, @Param("limit") int limit,
                                                 @Param("sname") String sname, @Param("stuid") String stuid,@Param("college") String college){
        return selectStuChoseDao.selectCollgeeStuChose(startPage,limit,sname,stuid,college);
    }
}
